on fs

chown bluetooth bluetooth /sys/module/amlogic_wireless/parameters/btpower_evt
chmod 0666 /sys/module/amlogic_wireless/parameters/btpower_evt

chown bluetooth bluetooth /sys/module/amlogic_wireless/parameters/btwake_evt
chmod 0666 /sys/module/amlogic_wireless/parameters/btwake_evt

service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
    -O/data/vendor/wifi/wpa/sockets -dd \
    -g@android:wpa_wlan0
    #   we will start as root and wpa_supplicant will switch to user wifi
    #   after setting up the capabilities required for WEXT
    #   user wifi
    #   group wifi inet keystore
    interface aidl android.hardware.wifi.supplicant.ISupplicant/default
    class main
    socket wpa_wlan0 dgram 660 wifi wifi
    disabled
    oneshot

service bcmdl /vendor/xbin/bcmdl -n /vendor/etc/wifi/43569/nvram_ap6269a2.nvm /vendor/etc/wifi/43569/fw_bcm43569a2_ag.bin.trx
		class main
    oneshot
    disabled

on property:vendor.wifi_name=bcm
   chown system wifi /sys/module/dhd/parameters/firmware_path
   chmod 0660 /sys/module/dhd/parameters/firmware_path
   chown system wifi /sys/module/bcmdhd/parameters/firmware_path
   chmod 0660 /sys/module/bcmdhd/parameters/firmware_path
   chown system wifi /sys/module/dhdpci/parameters/firmware_path
   chmod 0660 /sys/module/dhdpci/parameters/firmware_path
   setprop wifi.direct.interface p2p-dev-wlan0

on property:vendor.wifi_name=rtl
   setprop wifi.direct.interface ap0

on property:vendor.wifi_name=rtl8852bs
   setprop wifi.direct.interface p2p0

on property:vendor.wifi_name=rtl8852be
   setprop wifi.direct.interface p2p0

on property:vendor.wifi_name=mtk
   setprop wifi.direct.interface p2p0

on property:vendor.wifi_name=qca
   setprop wifi.direct.interface ap0

on property:vendor.wifi_name=aml
   setprop wifi.direct.interface ap0

on property:vendor.wifi_name=nxp
   setprop wifi.direct.interface p2p0

on property:vendor.w1_wifi_type=ap
   write /sys/module/vlsicomm/parameters/con_mode 6

on property:vendor.w1_wifi_type=p2p
   write /sys/module/vlsicomm/parameters/con_mode 130

